/**
 * Copyright &copy; 2014 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import cn.net.ecode.common.persistence.DataEntity;
import cn.net.ecode.common.persistence.annotation.Id;

/**
 * 用户字典类型管理Entity
 * @author ThinkGem
 * @version 2015-07-27
 */
public class UserDictType extends DataEntity<UserDictType> {
	
	private static final long serialVersionUID = 1L;
	private String dictTypeCode;		// 用户字典类型
	private String dictTypeName;		// 字典类型名称
	
	public UserDictType() {
		super();
	}

	public UserDictType(String dictTypeCode){
		super();
		this.dictTypeCode = dictTypeCode;
	}

	@Id
	@NotBlank(message="用户字典不能为空")
	@Length(min=0, max=100, message="用户字典类型长度不能超过 100 个字符")
	public String getDictTypeCode() {
		return dictTypeCode;
	}

	public void setDictTypeCode(String dictTypeCode) {
		this.dictTypeCode = dictTypeCode;
	}
	
	@Length(min=0, max=100, message="字典类型名称长度不能大于 100 个字符")
	public String getDictTypeName() {
		return dictTypeName;
	}

	public void setDictTypeName(String dictTypeName) {
		this.dictTypeName = dictTypeName;
	}
	
}